package com.jacky.datasource.constants;

public class SourceConstants {

    public static final String SELECT_SQL = "SELECT db_sign, username, password, driver_class_name FROM te_source WHERE status = 0 AND del_flag = 0";

    public enum Details {
        SIGN("db_sign", "数据连接标识"),
        USERNAME("username", "用户名"),
        PASSWORD("password", "密码"),
        URL("url", "连接地址"),
        DRIVER_CLASS("driver_class_name", "连接驱动类名");
        private final String code;

        private final String info;

        Details(String code, String info) {
            this.code = code;
            this.info = info;
        }

        public String code() {
            return code;
        }

        public String info() {
            return info;
        }
    }
}
